Letter
package com.jc;

public class Letter {
	public static void main(String[] args) {
		// 数字	 空格
		char c = ' ';
		
		String s = "";
		
		if((c>='A')&(c<='Z')) {
			s = "大写字母";
		}
		else if((c>='a')&(c<='z')) {
			s = "小写字母";
		}
		else if((c>='0')&(c<='9')) {
			s = "数字";
		}
		else if(c == ' ') {
			s = "空格";
		}
		else {
			s = "其他字符";
		}
		
		System.out.println(s);
	}
}

package com.jc;

import java.util.Scanner;

public class Washing {

	public static void main(String[] args) {
		//
		Scanner scan = new Scanner(System.in);
		
		System.out.println("1、矿泉水 2、桃汁 3、果汁 其他为退出");
		
		int n = scan.nextInt();
		
		String s = "";
		
		//处理
		if(n==1) {
			s = "矿泉水";
		}
		else if(n == 2) {
			s = "桃汁";
		}
		else if(n==3) {
			s = "果汁";
		}
		else {
			s = "退出";
		}
		
		System.out.println(s);
		
		scan.close();
	}

}

package com.jc;

import java.util.Scanner;

public class Yhang {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		System.out.println("1、开户 2、存款 3、取款 4、转账 5、查询余额 6、销户");
		
		int n = scan.nextInt();
		
		String s = "";
		
		if(n==1) {
			s = "开户";
		}
		else if(n==2) {
			s = "存款";
		}
		else if(n==3) {
			s = "取款";
		}
		else if(n==4) {
			s = "转账";
		}
		else if(n==5) {
			s = "查询余额";
		}
		else if(n==6) {
			s = "销户";
		}
		
		System.out.println(s);
		
		scan.close();
	}

}


package com.jc;

import java.util.Scanner;

public class Dyp {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		System.out.println("请输入你的年龄");
		
		int n = scan.nextInt();
		
		String s = "";
		
		if((n>0)&(n<=10)){
			s = "你可以免费观看电影";
		}
		else if((n>10)&(n<18)) {
			s = "电影票价格为8元";
		}
		else if((n>=18)&(n<60)) {
			s = "电影票价格为10元";
		}
		else if((n>=60)&(n<70)) {
			s = "电影票价格为6元";
		}
		else if(n>=70) {
			s = "你可以免费观看电影";
		}
		else {
			s = "退出";
		}
		
		System.out.println(s);
		
		scan.close();
	}

}

package com.jc;

import java.util.Scanner;

public class WashSwitch {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		//提示信息
		System.out.println("1、矿泉水 2、桃汁 3、果汁 其他退出");
		
		String s = "";
		
		int n = scan.nextInt();
		
		//可以是整数  字符  字符串  类型
		switch(n) {
		case 1:
			s = "矿泉水";
			break;
		case 2:
			s = "桃汁";
			break;
		default:
	        s = "其他退出";
			break;
		}
		System.out.println(s);
		
		scan.close();
	}
}

package com.jc;

public class Score {

	public static void main(String[] args) {
		int score = 100;
		
		String s ="";
		
		//注意  break  的作用
		switch(score / 10) {
		case 10:
		case 9:
			s = "优";
			break;
		case 8:
		case 7:
			s = "良";
			break;
		case 6:
			s = "中";
		default:
			s = "努力";
			break;
		}
		
		System.out.println(s);

	}

}

package com.jc;

import java.util.Scanner;

public class MyString {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String s = "";
		
		System.out.println("可以输入 se ee me 其他信息");
		
		String ss = scan.next();
		
		switch(ss) {
		case "se":
			s="JavaSE";
			break;
		default:
			s = "其他信息";
			break;
		}
		
		System.out.println(s);
		
		scan.close();
	}
}
